Minor redisplay optimization when the region length is zero.
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 13 Dec 2012 08:04:40 +0000 (12:04 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 13 Dec 2012 08:04:40 +0000 (12:04 +0400)
commit40e3fd697c74aac482dbb364dcf0e3ec89498091
treec6a6bafa7f5e95843c23b65f235cf101899938d7
parentb41f7484dc29b828b57e91df6c4dee10cd556071
Minor redisplay optimization when the region length is zero.
* xdisp.c (markpos_of_region): New function.
(init_iterator): Do not highlight the region of zero length.
(redisplay_window): Check whether the region is of non-zero length.
(try_cursor_movement): Allow if the region length is zero.
(try_window_reusing_current_matrix, try_window_id): Likewise.
src/ChangeLog
src/xdisp.c